package Demo1;

/**
 * Created with  IntelliJ IDEA .
 * Description:
 * User: lenovo
 * Date: 2025-${ MONTH }-20
 * Time: 14:29
 */
public class Fish extends Animals implements ISwimming{
    public Fish(String name, int age) {
        super(name, age);
    }

    public void eat(){
        System.out.println(this.name+"正在吃鱼粮");
    }

    public void swim(){
        System.out.println(this.name+"正在游泳");
    }
}
